home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1997 / MacHack 1997.toast / Hacks / Hacks ’93 / TwilightZone / source / grafstuff.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-06-18  |  682 b   |  33 lines  |  [TEXT/KAHL]

  1. #ifndef __grafstuff__
  2. #define __grafstuff__
  3.  
  4. #ifndef __RETRACE__
  5. #include <Retrace.h>
  6. #endif
  7.  
  8. #ifndef __SLOTS__
  9. #include <Slots.h>
  10. #endif
  11.  
  12. typedef struct {
  13.     Boolean *syncFlag;
  14.     VBLTask theVBL;
  15. } MyTask,*MyTaskPtr;
  16.  
  17. typedef struct {
  18.     MyTask vbl;
  19.     GDHandle theGD;
  20. } MyDeviceData, *MyDeviceDataPtr;
  21.  
  22. OSErr SetupMonitorData(void);
  23. OSErr RemoveMonitorData(void);
  24. short GetDepth(GDHandle theGD);
  25. OSErr InstallMonitorVBL(GDHandle theGD,MyTask *task,Boolean *syncFlag);
  26. OSErr RemoveMonitorVBL(GDHandle theGD,MyTask *task);
  27. pascal void MySyncVBL(void);
  28. OSErr GetSlot(GDHandle theGD,short *theSlot);
  29. OSErr InitModuleQD(QDGlobalsPtr *retQD);
  30. OSErr DisposeModuleQD(QDGlobalsPtr modQD);
  31.  
  32. #endif
  33.